package com.may.ipersistence.sqlSession;

import com.may.ipersistence.pojo.Configuration;

/**
 * @program: lagou
 * @description:
 * @author: Bobby.Ma
 * @create: 2020-11-05 18:17
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession();
    }
}
